// 练习4: 使用Maybe 重写ex4 , 不要有if语句

const fp = require('lodash/fp');
const { MayBe, Container } = require('./support');

// let ex4 = function (n) {
//   if (n) {
//     return parseInt(n);
//   }
// }

let ex4 = n => MayBe.of(n).map(parseInt)._value;

console.log(ex4());
console.log(ex4(13.1));